﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Stu_sys.Entity;

namespace Stu_sys.EntityConfig
{
    public class SubjectEntityConfig : IEntityTypeConfiguration<Subject>
    {
        public void Configure(EntityTypeBuilder<Subject> builder)
        {
           builder.Property(s=>s.SubjectName).HasColumnType("varchar(20)");
        }
    }
}
